<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户列表</title>
</head>
<body>
<?php
include_once('dbConn.php');

$name=trim(@$_POST['name']);
$password=@$_POST['password'];
$email=@$_POST['email'];
$tel=@$_POST['tel'];
$Sex=@$_POST['Sex'];
var_dump(@$_POST);

$sql = "INSERT INTO users VALUES (NULL, '$name',md5('$password'),'$Sex','$email','$tel')";

if (mysqli_query($conn, $sql)) {
    echo "新记录插入成功";
} else {
    echo "Error: " . $sql . "<br>" . mysqli_error($conn);
}


echo "您的用户名是：" .$name;
echo "<br/>您的密码是：".$password;
echo "<br/>您的性别是：".$Sex;
echo "<br/>您的邮箱是：".$email;
echo "<br/>您的手机号码是：".$tel;

?>
</body>
</html>
